package com.xyoto.community.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @author coderFu
 * @create 2021/11/25
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel("获取动态评论的dto")
@Data
public class GetDynamicCommentDTO extends PageDTO {

    @ApiModelProperty("动态id")
    @NotNull(message = "动态id不能为空")
    @Min(value = 1,message = "动态id必须大于等于1")
    private Integer id;


}
